package com.example.spring.exercise;

import com.example.spring.exercise.service.dto.StudentDTO;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableOpenApi
@SpringBootApplication
@MapperScan("com.example.spring.exercise.mapper")
public class SpringExerciseApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringExerciseApplication.class, args);
        StudentDTO.initStudents();
    }
}
